package com.cel.dependency_injection;

public class TextEditor01 {
    private SpellChecker01 spellChecker01;

    public SpellChecker01 getSpellChecker01() {
        return spellChecker01;
    }

    public void setSpellChecker01(SpellChecker01 spellChecker01) {
        System.out.println("Inside setSpellChecker.");
        this.spellChecker01 = spellChecker01;
    }

    public void spellCheck01() {
        spellChecker01.checkSpelling01();
    }
}
